package com.health.model;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;

import org.springframework.beans.BeanUtils;

import com.health.dto.BaseDTO;


/**
 * @author DirkMurphy
 * 
 * @blog http://www.cnblogs.com/dirkmurphyjava/
 * 
 * @date
 * 
 * @introduction generic PO class
 * 	
 */
public class BasePO
{

	/**
	 * convert a PO class to a DTO class
	 * @throws InvocationTargetException 
	 * @throws IllegalAccessException 
	 * */
	public BaseDTO convertPOToDTO(BasePO po)
	{
		BaseDTO dto = new BaseDTO();
		BeanUtils.copyProperties(po, dto);
		return dto;
	};
	
	
	
}
